﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Cofe.Core;
using Cofe.IO.Interfaces;

namespace Cofe.IO
{
    public static class ICompressorWrapperExtension
    {
        public static bool CompressOne(this ICompressorWrapper wrapper, StreamContainer container, string fileName, Stream fileStream)
        {
            return wrapper.CompressMultiple(container, new Dictionary<string, Stream>() { { fileName, fileStream } });
        }

    }
}
